﻿using System.Diagnostics;
using System.Xml.Serialization;
using PrearrangedChaos.AgileZen.Service.Model;

namespace PrearrangedChaos.AgileZen.Service.Rest
{
    [DebuggerStepThrough()]
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRoot(ElementName = "tags", Namespace = "", IsNullable = false)]
    [ZenRestRequest("projects/{ProjectId}/stories/{StoryId}/tags")]
    public partial class StoryTagsCollection : PagingCollection<Tag>
    {
        private Tag[] _tags;

        [XmlArrayItemAttribute("tag", IsNullable = false, Type = typeof(Tag))]
        [XmlArray(ElementName = "items")]
        public Tag[] Items
        {
            get
            {
                return this._tags;
            }
            set
            {
                this._tags = value;
            }
        }

        public override Tag[] GetItems()
        {
            return this._tags;
        }
    }
}
